package org.cloud.ext.websocket.domain;

import java.security.Principal;
/**
 * 身份令牌
 * @author xukk
 * @date 2020/3/9
 */
public class MyPrincipal  implements Principal {
    private String name;
    private String group;
    public MyPrincipal(String name){
        this.name=name;
    }

    public void setGroup(String group) {
        this.group = group;
    }

    public String getGroup() {
        return group;
    }

    @Override
    public String getName() {
        return name;
    }
}
